04. Code Checkpoint: Download the App
Step 1: Download the Code
- To get started, download the code here, download a zip of the starter code here, OR you can clone the Github repository for the code:
$ git clone https://github.com/udacity/android-testing.git
$ cd android-architecture
$ git checkout starter_code
This TO-DO app starter code has the same testing set-up (folders, library dependencies and sample tests) as a brand new project created with Android Studio. All of the tests and test configuration will be covered in these lessons so that you can apply the same testing practices to your own Android applications.
Step 2: Run the Sample App
Once you've downloaded the TO-DO Tasks app, open it in Android Studio and run it. It should compile. Explore the app by doing the following:
- Create a new task with the plus floating action button. Enter a title first, then enter additional information about the task. Scroll to see or edit the whole task before saving it.
- In the list of tasks, click on the title of the task you just completed and look at the detail screen for that task to see the rest of the description.
- In the list or on the detail screen, check the checkbox of that task to set its' status to "Completed".
- Go back to the tasks screen, open the filter menu, and filter the tasks by "Active" and "Completed" status.
- Open the navigation drawer and click "Statistics".
- Go back to the overview screen and from the navigation drawer menu, select "Clear completed" to delete all tasks with the "Completed" status.
Good work! You've seen how to operate the TO-DO Tasks app. You'll explore the testing code next.